package com.invest.intergration;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * Created by evan on 2016/6/9.
 */
public class ApiMsgSendReq extends  ApiBaseReq {

    //手机号
    @NotNull(message = "手机号不能为空")
    private String mobile;

    // 消息ID
    @NotNull(message = "消息ID不能为空")
    private String templateId;

    //展示地址
    private String uri;

    private String topColor;

    //通知内容
    @NotNull(message = "消息内容不能为空")
    private Map<String,Map<String,String>> data;

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public Map<String, Map<String, String>> getData() {
        return data;
    }

    public void setData(Map<String, Map<String, String>> data) {
        this.data = data;
    }

    public String getTopColor() {
        return topColor;
    }

    public void setTopColor(String topColor) {
        this.topColor = topColor;
    }

    public String toString(){
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
